package com.santoker.user.service.dto.vo.auth;

import com.santoker.user.service.dto.vo.AbstractVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class RegisterVo extends AbstractVo {

    @NotNull(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String captcha;

    @NotNull(message = "密码不能为空")
    @Size(max = 16, message = "密码不能超过16位")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotNull(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

}
